package com.yyx.springcloud.service.impl;

import com.yyx.springcloud.mapper.PaymentMapper;
import com.yyx.springcloud.pojo.Payment;
import com.yyx.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName: PaymentServiceImpl
 * Package: com.yyx.springcloud.service.impl
 * Description:
 *
 * @Author: yyx
 * @Create: 2025/7/23 - 15:14
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentMapper paymentMapper;
    @Override
    public int save(Payment payment) {
        return paymentMapper.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
